Skip to content

IFacetProjectionMapConfiguration uses constructor mapping#336

Merged
Tim-Maes merged 2 commits intomasterfrom
feature/issue-318
Apr 15, 2026
Merged

IFacetProjectionMapConfiguration uses constructor mapping#336
Tim-Maes merged 2 commits intomasterfrom
feature/issue-318

Conversation

@Tim-Maes
Copy link
Copy Markdown
Owner

#318 appendix

Users can now implement only IFacetProjectionMapConfiguration<TSource, TTarget> (without IFacetMapConfiguration). The generator will compile those expressions into a cached Action<TSource, TTarget> and invoke it in the constructor. This eliminates code duplication; write mapping logic once as expressions, and it works in both EF Core projections and in-memory constructors

@github-actions
Copy link
Copy Markdown

📦 Preview packages published

Version: 6.2.0-preview.pr336.2

Install with:

dotnet add package Facet --version 6.2.0-preview.pr336.2

This pre-release is published automatically from this PR and will be overwritten on the next push.

@Tim-Maes Tim-Maes merged commit 4462e18 into master Apr 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant